package com.study.gupao.proxy.cglibproxy;

import com.study.gupao.service.IUserService;
import com.study.gupao.service.impl.UserServiceImpl;

/**
 * @ClassName: TestCglibProxy
 * @Description: 测试Cglib代理
 * @author: Adminstrator
 * @Date: 2019-03-13 22:24
 */
public class TestCglibProxy {

    public static void main(String[] args) {
        UserServiceImpl service = new CglibProxy().newProyxInstance(UserServiceImpl.class);
        service.register("张三丰");
        System.out.println("--------------------------");
        service.login("张三丰");


    }
}
